home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
chacl.z
/
chacl
Wrap
Text File
|
1998-10-20
|
6KB
|
133 lines
CCCCHHHHAAAACCCCLLLL((((1111)))) CCCCHHHHAAAACCCCLLLL((((1111))))
NNNNAAAAMMMMEEEE
chacl - change the access control list of a file or directory
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
cccchhhhaaaaccccllll aaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
cccchhhhaaaaccccllll ----bbbb aaaaccccllll ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
cccchhhhaaaaccccllll ----dddd ddddaaaaccccllll ppppaaaatttthhhhnnnnaaaammmmeeee............
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_c_h_a_c_l changes the Access Control List (see _aaaa_cccc_llll(4)) for a file or
directory. The _----_bbbb flag indicates that there are two ACLs, the first is
the access ACL and the second the directory default ACL. The _----_dddd flag
indicates that there are two ACLs, the first one is the directory default
ACL and the second the access ACL. The ACL(s) specified are applied to
each file in the _pppp_aaaa_tttt_hhhh_nnnn_aaaa_mmmm_eeee arguments.
Each ACL is a string which is processed via _aaaa_cccc_llll______ffff_rrrr_oooo_mmmm______tttt_eeee_xxxx_tttt(3c). These
strings are made up of comma separated clauses each of which is of the
form, tag:name:perm. Where _tttt_aaaa_gggg can be
"user" (or "u")
indicating that the entry is a user ACL entry.
"group" (or "g")
indicating that the entry is a group ACL entry.
"other" (or "o")
indicating that the entry is an other ACL entry.
"mask" (or "m")
indicating that the entry is a mask ACL entry.
_nnnn_aaaa_mmmm_eeee is a string which is the user or group name for the ACL entry. A
null _nnnn_aaaa_mmmm_eeee in a user or group ACL entry indicates the file owner or
owner's group. _pppp_eeee_rrrr_mmmm is the string "rwx" where each of the entries may be
replaced by a "-" indicating no access of that type, e.g. "r-x", "--x",
"---".
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
A minimum ACL: _cccc_hhhh_aaaa_cccc_llll _uuuu_::::_::::_rrrr_wwww_xxxx_,,,,_gggg_::::_::::_rrrr_----_xxxx_,,,,_oooo_::::_::::_rrrr_----_---- _ffff_iiii_llll_eeee
The file ACL is set so that the file's owner has rwx, the file owner's
group has read and execute, and others have read only access to the file.
An ACL that is not a minimum ACL, that is, one that specifies a user or
group other than the file's owner or owner's group, must contain a mask
entry: _cccc_hhhh_aaaa_cccc_llll _uuuu_::::_::::_rrrr_wwww_xxxx_,,,,_gggg_::::_::::_rrrr_----_xxxx_,,,,_oooo_::::_::::_rrrr_----_----_,,,,_uuuu_::::_gggg_uuuu_eeee_ssss_tttt_::::_rrrr_----_----_,,,,_mmmm_::::_::::_rrrr_----_xxxx _ffff_iiii_llll_eeee_1111 _ffff_iiii_llll_eeee_2222
You can use the output of _llll_ssss _----_DDDD to get the ACL argument to _cccc_hhhh_aaaa_cccc_llll. To set
the default and access ACLs on newdir to be the same as on oldir, you
could type: _cccc_hhhh_aaaa_cccc_llll _----_bbbb _````_llll_ssss _----_dddd_DDDD _oooo_llll_dddd_dddd_iiii_rrrr _|||| _cccc_uuuu_tttt _----_dddd_""""_[[[[_"""" _----_ffff_2222 _|||| _cccc_uuuu_tttt _----_dddd_""""_////_"""" _----_ffff_1111_````
_````_llll_ssss _----_dddd_DDDD _bbbb_aaaa_rrrr_dddd_iiii_rrrr _|||| _cccc_uuuu_tttt _----_dddd_""""_[[[[_"""" _----_ffff_2222 _|||| _cccc_uuuu_tttt _----_dddd_""""_////_"""" _----_ffff_2222 _|||| _cccc_uuuu_tttt _----_dddd_""""_]]]]_"""" _----_ffff_1111_```` _nnnn_eeee_wwww_dddd_iiii_rrrr
PPPPaaaaggggeeee 1111
CCCCHHHHAAAACCCCLLLL((((1111)))) CCCCHHHHAAAACCCCLLLL((((1111))))
CCCCAAAAUUUUTTTTIIIIOOOONNNNSSSS
_cccc_hhhh_aaaa_cccc_llll replaces the existing ACL. To add or delete entries, you must
first do _llll_ssss _----_DDDD to get the existing ACL, and use the output to form the
arguments to _cccc_hhhh_aaaa_cccc_llll.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
acl(4), acl_from_text(3c).
PPPPaaaaggggeeee 2222